package com.hzt.system.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnJava;

import java.util.ArrayList;
import java.util.List;

/**
* 
*
* @Author:hzt
* @Date:1:02 上午 2020/7/7
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultObj {

    public static final ResultObj IS_LOGIN =new ResultObj(200,"已登陆");
    public static final ResultObj UN_LOGIN =new ResultObj(-1,"未登陆");

    public static final ResultObj DELETE_SUCCESS = new ResultObj(200,"删除成功");
    public static final ResultObj DELETE_ERROR =  new ResultObj(-1,"删除失败") ;
    public static final ResultObj DELETE_INFO=  new ResultObj(-1,"请添加id信息");


    public static final ResultObj ADD_SUCCESS = new ResultObj(200,"添加成功");
    public static final ResultObj ADD_ERROR =  new ResultObj(-1,"添加失败") ;

    public static final ResultObj UPDATE_SUCCESS = new ResultObj(200,"更新成功");
    public static final ResultObj UPDATE_ERROR =  new ResultObj(-1,"更新失败") ;

    public static final ResultObj DISPATCH_SUCCESS =  new ResultObj(-1,"分配成功") ;
    public static final ResultObj DISPATCH_ERROR =  new ResultObj(-1,"分配失败") ;

    public static final ResultObj RESET_SUCCESS =  new ResultObj(-1,"重置成功") ;
    public static final ResultObj RESET_ERROR =  new ResultObj(-1,"重置失败") ;

    private Integer code =200;
    private String msg;
    private Object token;

    public ResultObj(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }



}
